<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set var="questionSegments" value="${questionSegments.children}"></c:set>
<div id="questionSegment" class="quesclassdiv">
   	<c:forEach var="cascadeC" items="${questionSegments}" varStatus="segmentStatus">
   		<c:set var="segment" value="${cascadeC.current}"></c:set>
   		<c:set var="children" value="${cascadeC.children}"></c:set>
   		<dl>
   			<dt>
	   			<a href="<c:url value='/question/list.do?segid=${segment.segmentid}'/>">
	   				<c:out value='${segment.title}'/>
	   			</a>
   			</dt>
   			<dd>
				<c:forEach var="child" items="${children}" varStatus="childStatus">
					<c:set var="current" value="${child.current}"></c:set>
					<a href="<c:url value='/question/list.do?segid=${current.segmentid}'/>"><c:out value="${current.title}"/></a>
				</c:forEach>
			</dd>
		</dl>
   	</c:forEach>
</div>